package com.ruoyi.flow.entity.event;

import com.ruoyi.flow.entity.machine.Event;
import com.ruoyi.flow.entity.machine.Flow;
import lombok.Data;

import java.util.HashSet;
import java.util.Set;

@Data
public class FlowEvent {

    public FlowEvent(Flow flow) {
        this.id = flow.getId();
        this.name = flow.getName();

        this.nodeEvents = new HashSet<>();
        this.events = new HashSet<>();
    }

    private String id;
    private String name;
    private Set<NodeEvent> nodeEvents;
    private Set<Event> events;

}
